
/*Program to demonstrate printing of  string. Here string is assigned in the
array & now we will print the string from array. In this program i is
initialised from zero but there is not used ending value of i. We know about
array that any array contains zero at the ending position in the array. So
we can use this zero. So we give instruction to while loop to print the char
till it is not found zero.  */



#include<stdio.h>
#include<conio.h>
void main()
{
	char name[] = "Klinsman";
	int i = 0;
	clrscr();

	window(10, 10, 10, 50);
  //gotoxy(10, 10);
	while(name[i] != '\0')
	{
		printf("%c", name[i]);
		i++;
	}

   getch();
}
